package com.qianguo.shop.entity.mock;

import com.qianguo.shop.entity.Contact;
import com.qianguo.shop.entity.Contacts;

/**
 * Created by Forcs on 15/11/29.
 */
public class MockContacts extends Contacts {

    private Contact[] mContacts;

    public MockContacts() {
        final int n = 30;
        mContacts = new Contact[n];
        for (int i = 0; i < n; i++) {
            mContacts[i] = new MockContact(i);
        }
    }

    @Override
    public int getItemCount() {
        return mContacts.length;
    }

    @Override
    public Contact getItemAt(int position) {
        return mContacts[position];
    }
}
